package Mode;

import Util.Constants;

import java.util.Random;
import Util.Constants.*;
import Util.Controller;
import Util.Game;

/**
 * 随机生成方向
 * */
public class RandomPacMan extends Controller<MOVE> {
    private Random rnd=new Random();
    private MOVE[] allMoves= MOVE.values();

    public MOVE getMove(Game game, long timeDue)
    {
        return allMoves[rnd.nextInt(allMoves.length)];
    }
}
